package com.xpffly.design.builder.builder;

import com.xpffly.design.builder.model.CarModel;

import java.util.ArrayList;

/**
 * @Author: xpengfei
 * @Date: 2021/3/28 23:08
 * @Description：抽象汽车建造者
 */
public abstract class CarBuilder {

    /**
     * 模型组装顺序
     *
     * @param sequence
     */
    public abstract void setSequence(ArrayList<String> sequence);

    /**
     * 设置完模型组装顺序后，即可获取对应的模型
     *
     * @return
     */
    public abstract CarModel getCarModel();
}
